package cn.dzz.action;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.ServletRequestAware;

import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
import java.util.Map;

/**
 * @author Echo42
 * @file Struts2
 * @create 2020年08月29日16:54
 */
public class FormAction extends ActionSupport implements ServletRequestAware {

    private HttpServletRequest httpServletRequest;

    public void setServletRequest(HttpServletRequest httpServletRequest) {
        this.httpServletRequest = httpServletRequest;
    }

    @Override
    public String execute() throws Exception {
        String asdasdasd1 = httpServletRequest.getParameter("asdasdasd1");
        return NONE;
    }
}
